package com.cn.kehong.conf;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@PropertySource(value = "classpath:database.properties",encoding = "utf-8")
@Component
public class Config {

    @Value("${db.url}")
    public String dbUrl;

    @Value("${db.username}")
    public String username;

    @Value("${db.password}")
    public String password;

    @Value("${com.cn.device.db.back}")
    public String dbPath;

    @Value("${com.cn.device.file.path}")
    public String filePath;

    @Value("${com.cn.device.file.url}")
    public String fileUrl;

    @Value("${device.mqtt.host}")
    public String mqttHost;

    @Value("${com.cn.online.time}")
    public String onlineTime;

    @Value("${con.cn.expire.open}")
    public String expireOpen;

    @Value("${com.cn.ld.room161.printIp}")
    public String printIp161;

    @Value("${com.cn.ld.room162.printIp}")
    public String printIp162;

    @Value("${localhost.mqtt.host}")
    public String localMqttHost;

    @Value("${device.mqtt.topic}")
    public String mqttTopic;

    @Value("${device.mqtt.qos}")
    public int mqttQos;

    @Value("${device.mqtt.clientid}")
    public String clientid;

    @Value("${device.mqtt.userName}")
    public String mqttUserName;

    @Value("${device.mqtt.passWord}")
    public String mqttPassWord;

    @Value("${device.mqtt.expire}")
    public int mqttExpire;


    @Value("${device.com.cn.msm.sid}")
    public String sid;

    @Value("${device.com.cn.msm.token}")
    public String token;

    @Value("${device.com.cn.msm.appid}")
    public String appid;

    @Value("${device.com.cn.msm.templateId}")
    public String templateId;

    @Value("${device.com.cn.year}")
    public int meterYear;

    @Value("${device.com.cn.appsecret}")
    public String appsecret;

    @Value("${device.com.cn.wxappid}")
    public String wxappid;

    @Value("${device.com.cn.grantType}")
    public String grantType;

    @Value("${device.request.url}")
    public String deviceUrl;


    @Value("${com.cn.kehong.appKey}")
    public String appKey;

    @Value("${com.cn.kehong.appSecret}")
    public String appSecret;

    @Value("${com.cn.kehong.certificate}")
    public String certificate;




}
